package com.xxx.server.service.impl;

import com.xxx.server.pojo.Position;
import com.xxx.server.mapper.PositionMapper;
import com.xxx.server.service.IPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cd
 * @since 2023-12-22
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements IPositionService {

    @Override
    public boolean addPosition(Position position) {
        position.setCreateDate(LocalDateTime.now());
        boolean save = this.save(position);
        return save;
    }
}
